<div class="users view">
<h2><?php  echo __('User');?></h2>
	<dl>
		<dt><?php echo __('User Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['user_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['user_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Password'); ?></dt>
		<dd>
			<?php echo h($user['User']['password']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($user['User']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Phone'); ?></dt>
		<dd>
			<?php echo h($user['User']['phone']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('First Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['first_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Last Name'); ?></dt>
		<dd>
			<?php echo h($user['User']['last_name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Gender'); ?></dt>
		<dd>
			<?php echo h($user['User']['gender']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Interested'); ?></dt>
		<dd>
			<?php echo h($user['User']['interested']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Birthday'); ?></dt>
		<dd>
			<?php echo h($user['User']['birthday']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Public Birthday'); ?></dt>
		<dd>
			<?php echo h($user['User']['public_birthday']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Public Gender'); ?></dt>
		<dd>
			<?php echo h($user['User']['public_gender']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Blood Type'); ?></dt>
		<dd>
			<?php echo h($user['User']['blood_type']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Current City'); ?></dt>
		<dd>
			<?php echo h($user['User']['current_city']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Current Country'); ?></dt>
		<dd>
			<?php echo h($user['User']['current_country']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Url Image'); ?></dt>
		<dd>
			<?php echo h($user['User']['url_image']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Latitude'); ?></dt>
		<dd>
			<?php echo h($user['User']['latitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Longitude'); ?></dt>
		<dd>
			<?php echo h($user['User']['longitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Delete Flag'); ?></dt>
		<dd>
			<?php echo h($user['User']['delete_flag']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Register Model'); ?></dt>
		<dd>
			<?php echo h($user['User']['register_model']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Register Date'); ?></dt>
		<dd>
			<?php echo h($user['User']['register_date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('About'); ?></dt>
		<dd>
			<?php echo h($user['User']['about']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Is Private'); ?></dt>
		<dd>
			<?php echo h($user['User']['is_private']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Facebook Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['facebook_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Facebook Token'); ?></dt>
		<dd>
			<?php echo h($user['User']['facebook_token']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Twitter Id'); ?></dt>
		<dd>
			<?php echo h($user['User']['twitter_id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Twitter Token'); ?></dt>
		<dd>
			<?php echo h($user['User']['twitter_token']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Twitter Secret'); ?></dt>
		<dd>
			<?php echo h($user['User']['twitter_secret']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Logout Time'); ?></dt>
		<dd>
			<?php echo h($user['User']['logout_time']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['user_id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['user_id']), null, __('Are you sure you want to delete # %s?', $user['User']['user_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Blockers'), array('controller' => 'blockers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Blocker'), array('controller' => 'blockers', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Comments'), array('controller' => 'comments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Followings'), array('controller' => 'followings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Following'), array('controller' => 'followings', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Friends'), array('controller' => 'friends', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Friend'), array('controller' => 'friends', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Notification Settings'), array('controller' => 'notification_settings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Notification Setting'), array('controller' => 'notification_settings', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Photos'), array('controller' => 'photos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Photo'), array('controller' => 'photos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Popular Informations'), array('controller' => 'popular_informations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Popular Information'), array('controller' => 'popular_informations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ratings'), array('controller' => 'ratings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Rating'), array('controller' => 'ratings', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Request Lists'), array('controller' => 'request_lists', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Request List'), array('controller' => 'request_lists', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Reset Passwords'), array('controller' => 'reset_passwords', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Reset Password'), array('controller' => 'reset_passwords', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List User Pennants'), array('controller' => 'user_pennants', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User Pennant'), array('controller' => 'user_pennants', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List User Tags'), array('controller' => 'user_tags', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User Tag'), array('controller' => 'user_tags', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Blockers');?></h3>
	<?php if (!empty($user['Blocker'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Block Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Blocker'] as $blocker): ?>
		<tr>
			<td><?php echo $blocker['user_block_id'];?></td>
			<td><?php echo $blocker['user_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'blockers', 'action' => 'view', $blocker['user_block_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'blockers', 'action' => 'edit', $blocker['user_block_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'blockers', 'action' => 'delete', $blocker['user_block_id']), null, __('Are you sure you want to delete # %s?', $blocker['user_block_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Blocker'), array('controller' => 'blockers', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Comments');?></h3>
	<?php if (!empty($user['Comment'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('User Commented Id'); ?></th>
		<th><?php echo __('Comment'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th><?php echo __('Comment Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Comment'] as $comment): ?>
		<tr>
			<td><?php echo $comment['user_id'];?></td>
			<td><?php echo $comment['user_commented_id'];?></td>
			<td><?php echo $comment['comment'];?></td>
			<td><?php echo $comment['photo_id'];?></td>
			<td><?php echo $comment['post_time'];?></td>
			<td><?php echo $comment['comment_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'comments', 'action' => 'view', $comment['comment_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'comments', 'action' => 'edit', $comment['comment_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'comments', 'action' => 'delete', $comment['comment_id']), null, __('Are you sure you want to delete # %s?', $comment['comment_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Followings');?></h3>
	<?php if (!empty($user['Following'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('User Following Id'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Following'] as $following): ?>
		<tr>
			<td><?php echo $following['user_id'];?></td>
			<td><?php echo $following['user_following_id'];?></td>
			<td><?php echo $following['post_time'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'followings', 'action' => 'view', $following['user_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'followings', 'action' => 'edit', $following['user_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'followings', 'action' => 'delete', $following['user_id']), null, __('Are you sure you want to delete # %s?', $following['user_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Following'), array('controller' => 'followings', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Friends');?></h3>
	<?php if (!empty($user['Friend'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Friend User Id'); ?></th>
		<th><?php echo __('Friend User Name'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Friend'] as $friend): ?>
		<tr>
			<td><?php echo $friend['user_id'];?></td>
			<td><?php echo $friend['friend_user_id'];?></td>
			<td><?php echo $friend['friend_user_name'];?></td>
			<td><?php echo $friend['photo_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'friends', 'action' => 'view', $friend['user_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'friends', 'action' => 'edit', $friend['user_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'friends', 'action' => 'delete', $friend['user_id']), null, __('Are you sure you want to delete # %s?', $friend['user_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Friend'), array('controller' => 'friends', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Notification Settings');?></h3>
	<?php if (!empty($user['NotificationSetting'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Button Notice'); ?></th>
		<th><?php echo __('Comment Notice'); ?></th>
		<th><?php echo __('New Contact Notice'); ?></th>
		<th><?php echo __('Get Title Facebook'); ?></th>
		<th><?php echo __('Get Title Twitter'); ?></th>
		<th><?php echo __('Get Pennant Facebook'); ?></th>
		<th><?php echo __('Get Pennant Twitter'); ?></th>
		<th><?php echo __('Lost Title'); ?></th>
		<th><?php echo __('Device Token'); ?></th>
		<th><?php echo __('Comment Count'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['NotificationSetting'] as $notificationSetting): ?>
		<tr>
			<td><?php echo $notificationSetting['user_id'];?></td>
			<td><?php echo $notificationSetting['button_notice'];?></td>
			<td><?php echo $notificationSetting['comment_notice'];?></td>
			<td><?php echo $notificationSetting['new_contact_notice'];?></td>
			<td><?php echo $notificationSetting['get_title_facebook'];?></td>
			<td><?php echo $notificationSetting['get_title_twitter'];?></td>
			<td><?php echo $notificationSetting['get_pennant_facebook'];?></td>
			<td><?php echo $notificationSetting['get_pennant_twitter'];?></td>
			<td><?php echo $notificationSetting['lost_title'];?></td>
			<td><?php echo $notificationSetting['device_token'];?></td>
			<td><?php echo $notificationSetting['comment_count'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'notification_settings', 'action' => 'view', $notificationSetting['user_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'notification_settings', 'action' => 'edit', $notificationSetting['user_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'notification_settings', 'action' => 'delete', $notificationSetting['user_id']), null, __('Are you sure you want to delete # %s?', $notificationSetting['user_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Notification Setting'), array('controller' => 'notification_settings', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Photos');?></h3>
	<?php if (!empty($user['Photo'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Url Photo'); ?></th>
		<th><?php echo __('Url Thumb'); ?></th>
		<th><?php echo __('Button Type Rating'); ?></th>
		<th><?php echo __('Longitude'); ?></th>
		<th><?php echo __('Latitude'); ?></th>
		<th><?php echo __('Location Latitude'); ?></th>
		<th><?php echo __('Location Longitude'); ?></th>
		<th><?php echo __('Location Text'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th><?php echo __('Number Click Button'); ?></th>
		<th><?php echo __('Delete Flag'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Post Model'); ?></th>
		<th><?php echo __('Filter Id'); ?></th>
		<th><?php echo __('Caption'); ?></th>
		<th><?php echo __('Point'); ?></th>
		<th><?php echo __('Client Post Time'); ?></th>
		<th><?php echo __('Link Facebook'); ?></th>
		<th><?php echo __('Link Twitter'); ?></th>
		<th><?php echo __('Link Weibo'); ?></th>
		<th><?php echo __('Link Tumblr'); ?></th>
		<th><?php echo __('Link Flickr'); ?></th>
		<th><?php echo __('Location Id'); ?></th>
		<th><?php echo __('Url Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Photo'] as $photo): ?>
		<tr>
			<td><?php echo $photo['photo_id'];?></td>
			<td><?php echo $photo['url_photo'];?></td>
			<td><?php echo $photo['url_thumb'];?></td>
			<td><?php echo $photo['button_type_rating'];?></td>
			<td><?php echo $photo['longitude'];?></td>
			<td><?php echo $photo['latitude'];?></td>
			<td><?php echo $photo['location_latitude'];?></td>
			<td><?php echo $photo['location_longitude'];?></td>
			<td><?php echo $photo['location_text'];?></td>
			<td><?php echo $photo['post_time'];?></td>
			<td><?php echo $photo['number_click_button'];?></td>
			<td><?php echo $photo['delete_flag'];?></td>
			<td><?php echo $photo['user_id'];?></td>
			<td><?php echo $photo['post_model'];?></td>
			<td><?php echo $photo['filter_id'];?></td>
			<td><?php echo $photo['caption'];?></td>
			<td><?php echo $photo['point'];?></td>
			<td><?php echo $photo['client_post_time'];?></td>
			<td><?php echo $photo['link_facebook'];?></td>
			<td><?php echo $photo['link_twitter'];?></td>
			<td><?php echo $photo['link_weibo'];?></td>
			<td><?php echo $photo['link_tumblr'];?></td>
			<td><?php echo $photo['link_flickr'];?></td>
			<td><?php echo $photo['location_id'];?></td>
			<td><?php echo $photo['url_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'photos', 'action' => 'view', $photo['photo_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'photos', 'action' => 'edit', $photo['photo_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'photos', 'action' => 'delete', $photo['photo_id']), null, __('Are you sure you want to delete # %s?', $photo['photo_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Photo'), array('controller' => 'photos', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Popular Informations');?></h3>
	<?php if (!empty($user['PopularInformation'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Point'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['PopularInformation'] as $popularInformation): ?>
		<tr>
			<td><?php echo $popularInformation['user_id'];?></td>
			<td><?php echo $popularInformation['photo_id'];?></td>
			<td><?php echo $popularInformation['point'];?></td>
			<td><?php echo $popularInformation['post_time'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'popular_informations', 'action' => 'view', $popularInformation['photo_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'popular_informations', 'action' => 'edit', $popularInformation['photo_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'popular_informations', 'action' => 'delete', $popularInformation['photo_id']), null, __('Are you sure you want to delete # %s?', $popularInformation['photo_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Popular Information'), array('controller' => 'popular_informations', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Ratings');?></h3>
	<?php if (!empty($user['Rating'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('User Id Rating'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Post Time'); ?></th>
		<th><?php echo __('Button Type Rating'); ?></th>
		<th><?php echo __('Delete Flag'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Rating'] as $rating): ?>
		<tr>
			<td><?php echo $rating['user_id'];?></td>
			<td><?php echo $rating['user_id_rating'];?></td>
			<td><?php echo $rating['photo_id'];?></td>
			<td><?php echo $rating['post_time'];?></td>
			<td><?php echo $rating['button_type_rating'];?></td>
			<td><?php echo $rating['delete_flag'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'ratings', 'action' => 'view', $rating['photo_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'ratings', 'action' => 'edit', $rating['photo_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'ratings', 'action' => 'delete', $rating['photo_id']), null, __('Are you sure you want to delete # %s?', $rating['photo_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Rating'), array('controller' => 'ratings', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Request Lists');?></h3>
	<?php if (!empty($user['RequestList'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Request User Id'); ?></th>
		<th><?php echo __('Ignored'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['RequestList'] as $requestList): ?>
		<tr>
			<td><?php echo $requestList['request_user_id'];?></td>
			<td><?php echo $requestList['ignored'];?></td>
			<td><?php echo $requestList['user_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'request_lists', 'action' => 'view', $requestList['user_id_report'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'request_lists', 'action' => 'edit', $requestList['user_id_report'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'request_lists', 'action' => 'delete', $requestList['user_id_report']), null, __('Are you sure you want to delete # %s?', $requestList['user_id_report'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Request List'), array('controller' => 'request_lists', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Reset Passwords');?></h3>
	<?php if (!empty($user['ResetPassword'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Expired Date'); ?></th>
		<th><?php echo __('Token Key'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['ResetPassword'] as $resetPassword): ?>
		<tr>
			<td><?php echo $resetPassword['user_id'];?></td>
			<td><?php echo $resetPassword['expired_date'];?></td>
			<td><?php echo $resetPassword['token_key'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'reset_passwords', 'action' => 'view', $resetPassword['token_key'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'reset_passwords', 'action' => 'edit', $resetPassword['token_key'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'reset_passwords', 'action' => 'delete', $resetPassword['token_key']), null, __('Are you sure you want to delete # %s?', $resetPassword['token_key'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Reset Password'), array('controller' => 'reset_passwords', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related User Pennants');?></h3>
	<?php if (!empty($user['UserPennant'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Pennant Id'); ?></th>
		<th><?php echo __('Photo Id'); ?></th>
		<th><?php echo __('Unlock Time'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['UserPennant'] as $userPennant): ?>
		<tr>
			<td><?php echo $userPennant['user_id'];?></td>
			<td><?php echo $userPennant['pennant_id'];?></td>
			<td><?php echo $userPennant['photo_id'];?></td>
			<td><?php echo $userPennant['unlock_time'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'user_pennants', 'action' => 'view', $userPennant['pennant_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'user_pennants', 'action' => 'edit', $userPennant['pennant_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_pennants', 'action' => 'delete', $userPennant['pennant_id']), null, __('Are you sure you want to delete # %s?', $userPennant['pennant_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User Pennant'), array('controller' => 'user_pennants', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related User Tags');?></h3>
	<?php if (!empty($user['UserTag'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Tag Name'); ?></th>
		<th><?php echo __('Favorist'); ?></th>
		<th><?php echo __('Posts'); ?></th>
		<th><?php echo __('Point'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Highscore'); ?></th>
		<th><?php echo __('Title Score'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['UserTag'] as $userTag): ?>
		<tr>
			<td><?php echo $userTag['user_id'];?></td>
			<td><?php echo $userTag['tag_name'];?></td>
			<td><?php echo $userTag['favorist'];?></td>
			<td><?php echo $userTag['posts'];?></td>
			<td><?php echo $userTag['point'];?></td>
			<td><?php echo $userTag['title'];?></td>
			<td><?php echo $userTag['highscore'];?></td>
			<td><?php echo $userTag['title_score'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'user_tags', 'action' => 'view', $userTag['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'user_tags', 'action' => 'edit', $userTag['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'user_tags', 'action' => 'delete', $userTag['id']), null, __('Are you sure you want to delete # %s?', $userTag['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User Tag'), array('controller' => 'user_tags', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Users');?></h3>
	<?php if (!empty($user['User'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('User Name'); ?></th>
		<th><?php echo __('Password'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Phone'); ?></th>
		<th><?php echo __('First Name'); ?></th>
		<th><?php echo __('Last Name'); ?></th>
		<th><?php echo __('Gender'); ?></th>
		<th><?php echo __('Interested'); ?></th>
		<th><?php echo __('Birthday'); ?></th>
		<th><?php echo __('Public Birthday'); ?></th>
		<th><?php echo __('Public Gender'); ?></th>
		<th><?php echo __('Blood Type'); ?></th>
		<th><?php echo __('Current City'); ?></th>
		<th><?php echo __('Current Country'); ?></th>
		<th><?php echo __('Url Image'); ?></th>
		<th><?php echo __('Latitude'); ?></th>
		<th><?php echo __('Longitude'); ?></th>
		<th><?php echo __('Delete Flag'); ?></th>
		<th><?php echo __('Register Model'); ?></th>
		<th><?php echo __('Register Date'); ?></th>
		<th><?php echo __('About'); ?></th>
		<th><?php echo __('Is Private'); ?></th>
		<th><?php echo __('Facebook Id'); ?></th>
		<th><?php echo __('Facebook Token'); ?></th>
		<th><?php echo __('Twitter Id'); ?></th>
		<th><?php echo __('Twitter Token'); ?></th>
		<th><?php echo __('Twitter Secret'); ?></th>
		<th><?php echo __('Logout Time'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['User'] as $user): ?>
		<tr>
			<td><?php echo $user['user_id'];?></td>
			<td><?php echo $user['user_name'];?></td>
			<td><?php echo $user['password'];?></td>
			<td><?php echo $user['email'];?></td>
			<td><?php echo $user['phone'];?></td>
			<td><?php echo $user['first_name'];?></td>
			<td><?php echo $user['last_name'];?></td>
			<td><?php echo $user['gender'];?></td>
			<td><?php echo $user['interested'];?></td>
			<td><?php echo $user['birthday'];?></td>
			<td><?php echo $user['public_birthday'];?></td>
			<td><?php echo $user['public_gender'];?></td>
			<td><?php echo $user['blood_type'];?></td>
			<td><?php echo $user['current_city'];?></td>
			<td><?php echo $user['current_country'];?></td>
			<td><?php echo $user['url_image'];?></td>
			<td><?php echo $user['latitude'];?></td>
			<td><?php echo $user['longitude'];?></td>
			<td><?php echo $user['delete_flag'];?></td>
			<td><?php echo $user['register_model'];?></td>
			<td><?php echo $user['register_date'];?></td>
			<td><?php echo $user['about'];?></td>
			<td><?php echo $user['is_private'];?></td>
			<td><?php echo $user['facebook_id'];?></td>
			<td><?php echo $user['facebook_token'];?></td>
			<td><?php echo $user['twitter_id'];?></td>
			<td><?php echo $user['twitter_token'];?></td>
			<td><?php echo $user['twitter_secret'];?></td>
			<td><?php echo $user['logout_time'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'users', 'action' => 'view', $user['user_id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'users', 'action' => 'edit', $user['user_id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'users', 'action' => 'delete', $user['user_id']), null, __('Are you sure you want to delete # %s?', $user['user_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
